package org.jeecg.modules.mr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 抄表本
 * @Author: jeecg-boot
 * @Date:   2022-06-04
 * @Version: V1.0
 */
@Data
@TableName("mws_t_mr_books")
@ApiModel(value="mws_t_mr_books对象", description="抄表本")
public class MrBooks implements Serializable {
    private static final long serialVersionUID = 1L;

	/**ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private java.lang.String id;
	/**片区*/
	@Excel(name = "片区", width = 15, dictTable = "mws_t_base_areas", dicText = "name", dicCode = "id")
	@Dict(dictTable = "mws_t_base_areas", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "片区")
    private java.lang.String areaId;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private java.lang.String name;
	/**父级节点*/
	@Excel(name = "父级节点", width = 15)
    @ApiModelProperty(value = "父级节点")
    private java.lang.String pid;
	/**父名称*/
	@Excel(name = "父名称", width = 15)
    @ApiModelProperty(value = "父名称")
    private java.lang.String pname;
	/**是否有子节点*/
	@Excel(name = "是否有子节点", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private java.lang.String hasChild;
	/**抄表员*/
	@Excel(name = "抄表员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "抄表员")
    private java.lang.String readerId;
	/**抄表周期*/
	@Excel(name = "抄表周期", width = 15, dicCode = "water_read_cycle")
	@Dict(dicCode = "water_read_cycle")
    @ApiModelProperty(value = "抄表周期")
    private java.lang.String waterReadCycle;
	/**抄表次数*/
	@Excel(name = "抄表次数", width = 15)
    @ApiModelProperty(value = "抄表次数")
    private java.lang.String waterReadTimes;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
	/**部门编码*/
    @ApiModelProperty(value = "部门编码")
    private java.lang.String sysOrgCode;

    /**排序*/
    @Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private String sort;

	/**是否删除*/
//	@Excel(name = "是否删除", width = 15)
//    @ApiModelProperty(value = "是否删除")
    private java.lang.Integer delFlag;
	/**说明*/
	@Excel(name = "说明", width = 15)
    @ApiModelProperty(value = "说明")
    private java.lang.String remark;
	/**租户网点*/
//	@Excel(name = "租户网点", width = 15)
//    @ApiModelProperty(value = "租户网点")
    private java.lang.Integer tenantId;

    /**旧ID*/
    @Excel(name = "旧ID", width = 15)
    @ApiModelProperty(value = "旧ID")
	private String oldId;
}
